package org.autumn.shiro;

import org.apache.shiro.codec.Base64;
import org.apache.shiro.codec.Hex;

public class EncodeUtil {

    public static void main(String[] args) {
        String pass = "123456";

        String s = Base64.encodeToString(pass.getBytes());

        System.out.println(s);
        String s1 = Base64.decodeToString(s.getBytes());

        System.out.println(s1.equals(s));

    }
}
